package com.cmfi.domain.userRoleAuthEntity;

import java.io.Serializable;

import lombok.Data;

@Data
public class UserAndRole implements Serializable {

	private static final long serialVersionUID = -403567854238683121L;

	/**
	 * 用户id，聯合主鍵
	 */
	private Long userId;

	/**
	 * 角色id，聯合主鍵
	 */
	private Long roleId;

	public UserAndRole(Long userId, Long roleId) {
		super();
		this.userId = userId;
		this.roleId = roleId;
	}


	public Long getRoleId() {
		return roleId;
	}

	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}
	
}
